#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>

ESP8266WiFiMulti wifiMulti;    

void wifiInit(){
  wifiMulti.addAP("LAPTOP9#337", "xy1229033519");
  wifiMulti.addAP("MI9", "12345678"); 
  wifiMulti.addAP("laptop_zeeland_5592", "12345678"); 
  Serial.println("Connecting ...");                            
  
  int i = 0;                                 
  while (wifiMulti.run() != WL_CONNECTED) {
    // delay(500); 
    Serial.print(i++); Serial.print('.'); 
  }   

  Serial.println('\n');
  Serial.print("Connected to ");
  Serial.println(WiFi.SSID());
  Serial.print("IP address:\t");
  Serial.println(WiFi.localIP());
}

void setup(){
	Serial.begin(115200);
	Serial.println("start to work");
  wifiInit();
}
void loop(){
  
}